package com.example.demo.model;

import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.util.Date;

@ApiModel("帖子信息")
@Data
public class Article {
    private Long id;

    private Long boardId;

    private Long userId;

    private String title;

    private Integer visitCount;

    private Integer replyCount;

    private Integer likeCount;

    private Byte state;

    private Byte deleteState;

    private Date createTime;

    private Date updateTime;

    private String content;

    //添加关联对象
    private User user;

    //添加关联对象
    private Board board;

    //当作者是登录用户的时候，设置为true
    private Boolean own;
}